-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Improve argument error messages of ext/standard #5198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve argument error messages of ext/standard #5198
Conversation
For the null byte messages maybe something along the lines |
6eb6fb6
to
5d3efe5
Compare
thanks @Girgias for the review! :) I've just addressed the comments and adapted the tests in a separate commit.
The problem is that currently, argument error messages follow the |
5d3efe5
to
61b8cdb
Compare
How about |
61b8cdb
to
a855326
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, it is maybe a bit annoying that every type error message needs to add to be of type
in front of it but that isn't dramatic.
3f156a5
to
9d23da8
Compare
This looks pretty good, I think the final format turned out to be quite nice :) |
e125baf
to
a31ecc8
Compare
3 notes:
Input string contains NULL bytes
)zend_argument_type_error()
andzend_argument_value_error()
macros had to be converted to a function, otherwisezend_exceptions.h
should have been imported in way too many files (because of usingzend_ce_type_error
andzend_ce_value_error
)